package com.example.service.impl;

import com.example.entity.po.Teaching;
import com.example.entity.vo.PlaceClassroom;
import com.example.entity.vo.TeachingVo;
import com.example.mapper.TeachingMapper;
import com.example.service.TeachingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeachingServiceImpl implements TeachingService {

    @Autowired
    private TeachingMapper teachingMapper;

    @Override
    public List<TeachingVo> queryTeaching() {
        return teachingMapper.queryTeaching();
    }

    @Override
    public int addTeaching(Teaching teaching) {
        return teachingMapper.addTeaching(teaching);
    }

    @Override
    public int deleteTeaching(int teachingId) {
        return teachingMapper.deleteTeaching(teachingId);
    }

    @Override
    public List<TeachingVo> fuzzyTeaching(String teachingName) {
        return teachingMapper.fuzzyTeaching(teachingName);
    }

}
